package com.caochenlei.table;

public class SymbolTableTest {
    public static void main(String[] args) {
        SymbolTable<Integer, String> symbolTable = new SymbolTable<>();

        symbolTable.put(1, "刘备");
        symbolTable.put(3, "关羽");
        symbolTable.put(2, "张飞");

        System.out.println(symbolTable.size());
        System.out.println(symbolTable.isEmpty());
        System.out.println(symbolTable.keySet());
        System.out.println(symbolTable.valueSet());
        for (Integer key : symbolTable.keySet()) {
            System.out.println(key + "：" + symbolTable.get(key));
        }
        for (Integer key : symbolTable.keySet()) {
            symbolTable.delete(key);
        }
        System.out.println(symbolTable.size());
        System.out.println(symbolTable.isEmpty());
        System.out.println(symbolTable.keySet());
        System.out.println(symbolTable.valueSet());
    }
}
